package com.jic.order.mapper;

import com.jic.order.entity.OrderRefund;
import com.jic.order.manage.request.OrderRefundRequest;
import com.jic.order.manage.response.OrderRefundResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 退款明细表
 * @author :
 * @email :
 * @since : 2020-03-06 05:31:40
 * @version : v1.0.0
 */
@Mapper
public interface  OrderRefundMapper {

    long insert(OrderRefund orderRefund);

    long delete(Long id);

    long update(OrderRefund orderRefund);

    OrderRefund queryByPrimaryKey(Long id);

    List<OrderRefund> query(OrderRefund orderRefund);

    List<OrderRefundResponse> queryPage(@Param("startIndex") int startIndex,
                                        @Param("orderRefund") OrderRefundRequest orderRefundRequest);

    long queryPageCount(@Param("orderRefund") OrderRefundRequest orderRefundRequest);
}
